
public class Thread2 extends Car implements Runnable {

	
	public Thread2() {
		Thread t = new Thread(Thread2.this);
		t.start();
	}
	
	public void run() {
		System.out.println("New thread");
		System.out.println("my name : "+Thread.currentThread());		
	}
	
	public static void main(String[] args) {
		
		Thread2 th2 = new Thread2();
		System.out.println("my name : "+Thread.currentThread());
	}

}
